
#ifndef  UTIL_H
#define  UTIL_H


#define CASSERT(expr) do{ \
    if(!(expr)) { \
      pr_err("assert failed:[%s:%d]\n", __FILE__, __LINE__); \
    } \
}while(0)

#define CASSERT_WITH(expr, msg) do{ \
    if(!(expr)) { \
      pr_err("assert failed [%s:%d], %s\n", __FILE__, __LINE__, msg); \
    } \
}while(0)


#endif   /* UTIL_H */
